package com.cxy.service.impl;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.cxy.model.SysUser;
import com.cxy.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author: cxy
 * @since: 2023/5/29 15:12
 * @description:
 */
@Service
@Transactional(readOnly = true)
public class UserServiceImpl implements UserService {

    /**
     * 注解鉴权：只有具备 `user:add` 权限的会话才可以进入方法
     * @return
     */
    @Override
    @SaCheckPermission("user:add")
    public SysUser save(SysUser user) {
        return null;
    }
}
